﻿using PLC.Application.SysLogs.Services;
using PLC.Interface.SysLogs;
using System;
using System.Threading.Tasks;
using YWM;
using YWM.Dto;

namespace PLC.Application.SysLogs
{
    public class SysLogAppService : ISysLogAppService
    {
        private readonly ISysLogService _sysLogService = YApp.Resolve<ISysLogService>();

        public Task<PagedResultDto<SysLogDto>> GetAll(SysLogResultRequestDto input)
        {
            return _sysLogService.GetAll(input);
        }

        public Task<SysLogDto> Create(SysLogDto input)
        {
            input.OperationTime = DateTime.Now;
            return _sysLogService.Create(input);
        }

    }
}
